home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / controls.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  32.3 KB  |  1,483 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ SETUP MENU \\
  5.  
  6. menuDef {
  7.         name "control_menu"
  8.         visible 0
  9.         fullscreen 0
  10.     rect 186 0 443 426
  11.         focusColor 1 .75 0 1
  12.         style 1
  13.         border 1
  14.     onClose {
  15.         uiScript saveControls
  16.     }
  17.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ; 
  18.         fadeout fadebox ; 
  19.         hide grpControls ; 
  20.         show look ; 
  21.         uiScript loadControls }
  22.  
  23.  
  24. itemDef {
  25.           name controls_shader
  26.     group grpControls
  27.           style WINDOW_STYLE_SHADER
  28.           rect 0 45 640 60      
  29.           visible 0
  30.           background "ui/assets/controls_shader1"
  31.           decoration 
  32.     }
  33.  
  34. itemDef {
  35.     name window
  36.     group grpControlbutton
  37.     rect 0 2 443 426    
  38.     style WINDOW_STYLE_FILLED
  39.     border 1
  40.     bordercolor .5 .5 .5 .5
  41.     forecolor 1 1 1 1
  42.     backcolor 0 0 0 .25
  43.     visible 1
  44.     decoration
  45.     }
  46.  
  47. itemDef {
  48.           name keyBindStatus
  49.           rect 0 15 640 30 
  50.     ownerdraw UI_KEYBINDSTATUS
  51.     text " "      
  52.     forecolor 1 .75 0 1
  53.     textscale .25
  54.     textalignx 221
  55.     textalign 1
  56.     textaligny 20
  57.     visible 0
  58.           decoration 
  59.     }
  60.  
  61.  
  62. itemDef {
  63.     name ctr_look
  64.     text "Look"
  65.     type 1
  66.     textscale .3
  67.     group grpControlbutton
  68.     type ITEM_TYPE_BUTTON
  69.     style WINDOW_STYLE_FILLED
  70.     background "ui/assets/button_back.tga"
  71.     rect 17 395 45 26
  72.     textalign 1
  73.     textalignx 22
  74.     textaligny 20
  75.     forecolor 1 1 1 1
  76.     backcolor .37 .1 .1 1
  77.     visible 1
  78.     action { play "sound/misc/kcaction.wav" ; 
  79.     hide grpControls ; show look }
  80.     mouseEnter { show message_look ; setitemcolor ctr_look backcolor .1 .37 .1 1 } 
  81.     mouseExit { hide message_look ; setitemcolor ctr_look backcolor .37 .1 .1 1 } 
  82.     }
  83. itemDef {
  84.           name ctr_look
  85.     group grpControlbutton
  86.     style WINDOW_STYLE_SHADER
  87.     background "ui/assets/framebutton.tga"
  88.      rect 17 395 45 26
  89.           visible 1 
  90.     decoration        
  91.         }
  92.  
  93. itemDef {
  94.           name ctr_look
  95.     group grpControlbutton
  96.     style WINDOW_STYLE_SHADER
  97.     background "ui/assets/leftbutton.tga"
  98.           rect 5 395 13 26
  99.           visible 1 
  100.     decoration        
  101.         }
  102.  
  103. itemDef {
  104.           name ctr_look
  105.     group grpControlbutton
  106.     style WINDOW_STYLE_SHADER
  107.     background "ui/assets/rightbutton.tga"
  108.           rect 61 395 13 26
  109.           visible 1 
  110.     decoration        
  111.         }
  112.     itemDef {
  113.               name look
  114.         group grpControls
  115.               type ITEM_TYPE_BIND
  116.         text "Lookup:"
  117.         cvar "+lookup"
  118.         rect 99 50 256 20 
  119.               textalign ITEM_ALIGN_RIGHT
  120.               textalignx 128 
  121.               textaligny 17    
  122.         textscale .333            
  123.               forecolor 1 1 1 1
  124.               visible 0 
  125.         mouseenter { show keyBindStatus }
  126.         mouseexit { hide keyBindStatus }
  127.             }
  128.  
  129.     itemDef {
  130.               name look
  131.         group grpControls
  132.               type ITEM_TYPE_BIND
  133.         text "Look Down:"
  134.         cvar "+lookdown"
  135.         rect 99 80 256 20 
  136.               textalign ITEM_ALIGN_RIGHT
  137.               textalignx 128 
  138.               textaligny 17       
  139.               textscale .333           
  140.         forecolor 1 1 1 1
  141.               visible 0 
  142.         mouseenter { show keyBindStatus }
  143.         mouseexit { hide keyBindStatus }
  144.             }
  145.  
  146.     itemDef {
  147.               name look
  148.         group grpControls
  149.               type ITEM_TYPE_BIND
  150.         text "Mouse Look:"
  151.         cvar "+mlook"
  152.         rect 99 110 256 20
  153.               textalign ITEM_ALIGN_RIGHT
  154.               textalignx 128
  155.               textaligny 17
  156.         textscale .333           
  157.               forecolor 1 1 1 1
  158.               visible 0 
  159.         mouseenter { show keyBindStatus }
  160.         mouseexit { hide keyBindStatus }
  161.             }
  162.     
  163.     itemDef {
  164.               name look
  165.         group grpControls
  166.               type ITEM_TYPE_BIND
  167.         text "Centerview:"
  168.         cvar "centerview"
  169.         rect 99 140 256 20
  170.               textalign ITEM_ALIGN_RIGHT
  171.               textalignx 128
  172.               textaligny 17
  173.         textscale .333           
  174.               forecolor 1 1 1 1
  175.               visible 0 
  176.         mouseenter { show keyBindStatus }
  177.         mouseexit { hide keyBindStatus }
  178.             }
  179.  
  180.     itemDef {
  181.               name look
  182.         group grpControls
  183.               type ITEM_TYPE_BIND
  184.         text "ZoomView:"
  185.         cvar "+zoom"
  186.         rect 99 170 256 20
  187.               textalign ITEM_ALIGN_RIGHT
  188.               textalignx 128
  189.               textaligny 17
  190.         textscale .333           
  191.               forecolor 1 1 1 1
  192.               visible 0 
  193.         mouseenter { show keyBindStatus }
  194.         mouseexit { hide keyBindStatus }
  195.             }
  196.  
  197.     itemDef {
  198.               name look
  199.         group grpControls
  200.               type ITEM_TYPE_YESNO
  201.         text "Free Look:"
  202.         cvar "cl_freelook"
  203.         rect 99 200 256 20
  204.               textalign ITEM_ALIGN_RIGHT
  205.               textalignx 128
  206.               textaligny 17
  207.         textscale .333           
  208.               forecolor 1 1 1 1
  209.               visible 0 
  210.         mouseenter { show yesno_message }
  211.         mouseexit { hide yesno_message }
  212.             }
  213.  
  214. itemDef {
  215.     name ctr_move
  216.     text "Move"
  217.     type 1
  218.     textscale .3
  219.     group grpControlbutton
  220.     type ITEM_TYPE_BUTTON
  221.     style WINDOW_STYLE_FILLED
  222.     background "ui/assets/button_back.tga"
  223.     rect 90 395 45 26
  224.     textalign 1
  225.     textalignx 22
  226.     textaligny 20
  227.     forecolor 1 1 1 1 
  228.     backcolor .37 .1 .1 1
  229.     visible 1
  230.     action { play "sound/misc/kcaction.wav" ; 
  231.     hide grpControls ; show move }
  232.     mouseEnter { show message_move ; setitemcolor ctr_move backcolor .1 .37 .1 1  } 
  233.     mouseExit { hide message_move ; setitemcolor ctr_move backcolor .37 .1 .1 1 } 
  234.     }
  235. itemDef {
  236.           name ctr_move
  237.     group grpControlbutton
  238.     style WINDOW_STYLE_SHADER
  239.     background "ui/assets/framebutton.tga"
  240.      rect 90 395 45 26
  241.           visible 1 
  242.     decoration        
  243.         }
  244.  
  245. itemDef {
  246.           name ctr_move
  247.     group grpControlbutton
  248.     style WINDOW_STYLE_SHADER
  249.     background "ui/assets/leftbutton.tga"
  250.           rect 78 395 13 26
  251.           visible 1 
  252.     decoration        
  253.         }
  254.  
  255. itemDef {
  256.           name ctr_move
  257.     group grpControlbutton
  258.     style WINDOW_STYLE_SHADER
  259.     background "ui/assets/rightbutton.tga"
  260.           rect 134 395 13 26
  261.           visible 1 
  262.     decoration        
  263.         }
  264.  
  265.  
  266.     itemDef {
  267.               name move
  268.         group grpControls
  269.               type ITEM_TYPE_YESNO
  270.         text "Always Run:"
  271.         cvar "cl_run"
  272.         rect 99 50 256 20
  273.               textalign ITEM_ALIGN_RIGHT
  274.               textalignx 128 
  275.               textaligny 20
  276.         textscale .333            
  277.               forecolor 1 1 1 1
  278.               visible 0 
  279.         mouseenter { show yesno_message }
  280.         mouseexit { hide yesno_message }
  281.             }
  282.     itemDef {
  283.               name move
  284.         group grpControls
  285.               type ITEM_TYPE_BIND
  286.         text "Run / Walk:"
  287.         cvar "+speed"
  288.         rect 99 75 256 20
  289.               textalign ITEM_ALIGN_RIGHT
  290.               textalignx 128 
  291.               textaligny 20
  292.         textscale .333            
  293.               forecolor 1 1 1 1
  294.               visible 0 
  295.             }
  296.  
  297.     itemDef {
  298.               name move
  299.         group grpControls
  300.               type ITEM_TYPE_BIND
  301.         text "Forward:"
  302.         cvar "+forward"
  303.         rect 99 100 256 20
  304.               textalign ITEM_ALIGN_RIGHT
  305.               textalignx 128
  306.               textaligny 20
  307.         textscale .333            
  308.               forecolor 1 1 1 1
  309.               visible 0 
  310.         mouseenter { show keyBindStatus }
  311.         mouseexit { hide keyBindStatus }
  312.             }
  313.  
  314.     itemDef {
  315.               name move
  316.         group grpControls
  317.               type ITEM_TYPE_BIND
  318.         text "Backpedal:"
  319.         cvar "+back"
  320.         rect 99 125 256 20
  321.               textalign ITEM_ALIGN_RIGHT
  322.               textalignx 128
  323.               textaligny 20
  324.         textscale .333                   
  325.               forecolor 1 1 1 1
  326.               visible 0 
  327.         mouseenter { show keyBindStatus }
  328.         mouseexit { hide keyBindStatus }
  329.             }
  330.     
  331.     itemDef {
  332.               name move
  333.         group grpControls
  334.               type ITEM_TYPE_BIND
  335.         text "Move Left:"
  336.         cvar "+moveleft"
  337.         rect 99 150 256 20
  338.               textalign ITEM_ALIGN_RIGHT
  339.               textalignx 128
  340.               textaligny 20
  341.         textscale .333            
  342.               forecolor 1 1 1 1
  343.               visible 0 
  344.         mouseenter { show keyBindStatus }
  345.         mouseexit { hide keyBindStatus }
  346.             }
  347.  
  348.     itemDef {
  349.               name move
  350.         group grpControls
  351.               type ITEM_TYPE_BIND
  352.         text "Move Right:"
  353.         cvar "+moveright"
  354.         rect 99 175 256 20
  355.               textalign ITEM_ALIGN_RIGHT
  356.               textalignx 128
  357.               textaligny 20
  358.         textscale .333           
  359.               forecolor 1 1 1 1
  360.               visible 0 
  361.         mouseenter { show keyBindStatus }
  362.         mouseexit { hide keyBindStatus }
  363.             }
  364.  
  365.     itemDef {
  366.               name move
  367.         group grpControls
  368.               type ITEM_TYPE_BIND
  369.         text "Jump:"
  370.         cvar "+moveup"
  371.         rect 99 200 256 20
  372.               textalign ITEM_ALIGN_RIGHT
  373.               textalignx 128
  374.               textaligny 20
  375.         textscale .333            
  376.               forecolor 1 1 1 1
  377.               visible 0 
  378.         mouseenter { show keyBindStatus }
  379.         mouseexit { hide keyBindStatus }
  380.             }
  381.  
  382.     itemDef {
  383.               name move
  384.         group grpControls
  385.               type ITEM_TYPE_BIND
  386.         text "Crouch:"
  387.         cvar "+movedown"
  388.         rect 99 225 256 20
  389.               textalign ITEM_ALIGN_RIGHT
  390.               textalignx 128
  391.               textaligny 20
  392.         textscale .333            
  393.               forecolor 1 1 1 1
  394.               visible 0 
  395.         mouseenter { show keyBindStatus }
  396.         mouseexit { hide keyBindStatus }
  397.             }
  398.  
  399.     itemDef {
  400.               name move
  401.         group grpControls
  402.               type ITEM_TYPE_BIND
  403.         text "Turn Left:"
  404.         cvar "+left"
  405.         rect 99 250 256 20
  406.               textalign ITEM_ALIGN_RIGHT
  407.               textalignx 128
  408.               textaligny 20
  409.         textscale .333            
  410.               forecolor 1 1 1 1
  411.               visible 0 
  412.         mouseenter { show keyBindStatus }
  413.         mouseexit { hide keyBindStatus }
  414.             }
  415.  
  416.     itemDef {
  417.               name move
  418.         group grpControls
  419.               type ITEM_TYPE_BIND
  420.         text "Turn Right:"
  421.         cvar "+right"
  422.         rect 99 275 256 20
  423.               textalign ITEM_ALIGN_RIGHT
  424.               textalignx 128
  425.               textaligny 20
  426.         textscale .333            
  427.               forecolor 1 1 1 1
  428.               visible 0
  429.         mouseenter { show keyBindStatus }
  430.         mouseexit { hide keyBindStatus } 
  431.             }
  432.     
  433.     itemDef {
  434.               name move
  435.         group grpControls
  436.               type ITEM_TYPE_BIND
  437.         text "Strafe:"
  438.         cvar "+strafe"
  439.         rect 99 300 256 20
  440.               textalign ITEM_ALIGN_RIGHT
  441.               textalignx 128
  442.               textaligny 20
  443.         textscale .333            
  444.               forecolor 1 1 1 1
  445.               visible 0 
  446.         mouseenter { show keyBindStatus }
  447.         mouseexit { hide keyBindStatus }
  448.             }
  449.  
  450.  
  451.  
  452. itemDef {
  453.     name ctr_shoot
  454.     text "Shoot"
  455.     type 1
  456.     textscale .3
  457.     group grpControlbutton
  458.     type ITEM_TYPE_BUTTON
  459.     style WINDOW_STYLE_FILLED
  460.     background "ui/assets/button_back.tga"
  461.     rect 163 395 45 26
  462.     textalign 1
  463.     textalignx 22
  464.     textaligny 20
  465.     forecolor 1 1 1 1
  466.     backcolor .37 .1 .1 1 
  467.     visible 1
  468.     action { play "sound/misc/kcaction.wav" ; 
  469.     hide grpControls ; show shoot }
  470.     mouseEnter { show message_shoot ; setitemcolor ctr_shoot backcolor .1 .37 .1 1 } 
  471.     mouseExit { hide message_shoot ; setitemcolor ctr_shoot backcolor .37 .1 .1 1 }
  472.     }
  473.  
  474. itemDef {
  475.        name ctr_shoot
  476.     group grpControlbutton
  477.     style WINDOW_STYLE_SHADER
  478.     background "ui/assets/framebutton.tga"
  479.      rect 163 395 45 26
  480.        visible 1 
  481.     decoration        
  482.      }
  483.  
  484. itemDef {
  485.           name ctr_shoot
  486.     group grpControlbutton
  487.     style WINDOW_STYLE_SHADER
  488.     background "ui/assets/leftbutton.tga"
  489.           rect 151 395 13 26
  490.           visible 1 
  491.     decoration        
  492.         }
  493.  
  494. itemDef {
  495.           name ctr_shoot
  496.     group grpControlbutton
  497.     style WINDOW_STYLE_SHADER
  498.     background "ui/assets/rightbutton.tga"
  499.           rect 207 395 13 26
  500.           visible 1 
  501.     decoration        
  502.         }
  503.     
  504.     
  505.     itemDef {
  506.               name shoot                
  507.         group grpControls
  508.               type ITEM_TYPE_BIND
  509.         text "Attack:"
  510.         cvar "+attack"
  511.         rect 99 50 256 20
  512.               textalign ITEM_ALIGN_RIGHT
  513.               textalignx 128 
  514.               textaligny 20
  515.         textscale .3        
  516.               forecolor 1 1 1 1
  517.               visible 0 
  518.         mouseenter { show keyBindStatus }
  519.         mouseexit { hide keyBindStatus }
  520.             }
  521.  
  522.     itemDef {
  523.               name shoot
  524.         group grpControls
  525.               type ITEM_TYPE_BIND
  526.         text "Previous Weapon:"
  527.         cvar "weapprev"
  528.         rect 99 70 256 20
  529.               textalign ITEM_ALIGN_RIGHT
  530.               textalignx 128
  531.               textaligny 20
  532.         textscale .3        
  533.               forecolor 1 1 1 1
  534.               visible 0 
  535.         mouseenter { show keyBindStatus }
  536.         mouseexit { hide keyBindStatus }
  537.             }
  538.  
  539.     itemDef {
  540.               name shoot
  541.         group grpControls
  542.               type ITEM_TYPE_BIND
  543.         text "Next Weapon:"
  544.         cvar "weapnext"
  545.         rect 99 90 256 20
  546.               textalign ITEM_ALIGN_RIGHT
  547.               textalignx 128
  548.               textaligny 20
  549.         textscale .3        
  550.               forecolor 1 1 1 1
  551.               visible 0 
  552.         mouseenter { show keyBindStatus }
  553.         mouseexit { hide keyBindStatus }
  554.             }
  555.     
  556.     itemDef {
  557.               name shoot
  558.         group grpControls
  559.               type ITEM_TYPE_YESNO
  560.         text "Autoswitch:"
  561.         cvar "cg_autoswitch"
  562.         rect 99 110 256 20
  563.               textalign ITEM_ALIGN_RIGHT
  564.               textalignx 128
  565.               textaligny 20
  566.         textscale .3        
  567.               forecolor 1 1 1 1
  568.               visible 0
  569.         mouseenter { show yesno_message }
  570.         mouseexit { hide yesno_message } 
  571.             }
  572.  
  573.     itemDef {
  574.               name shoot
  575.         group grpControls
  576.               type ITEM_TYPE_BIND
  577.         text "Gauntlet:"
  578.         cvar "weapon 1"
  579.         rect 99 130 256 20
  580.               textalign ITEM_ALIGN_RIGHT
  581.               textalignx 128
  582.               textaligny 20
  583.         textscale .3        
  584.               forecolor 1 1 1 1
  585.               visible 0 
  586.         mouseenter { show keyBindStatus }
  587.         mouseexit { hide keyBindStatus }
  588.             }
  589.  
  590.     itemDef {
  591.               name shoot
  592.         group grpControls
  593.               type ITEM_TYPE_BIND
  594.         text "Machinegun:"
  595.         cvar "weapon 2"
  596.         rect 99 150 256 20
  597.               textalign ITEM_ALIGN_RIGHT
  598.               textalignx 128
  599.               textaligny 20
  600.         textscale .3        
  601.               forecolor 1 1 1 1
  602.               visible 0 
  603.         mouseenter { show keyBindStatus }
  604.         mouseexit { hide keyBindStatus }
  605.             }
  606.  
  607.     itemDef {
  608.               name shoot
  609.         group grpControls
  610.               type ITEM_TYPE_BIND
  611.         text "Shotgun:"
  612.         cvar "weapon 3"
  613.         rect 99 170 256 20
  614.               textalign ITEM_ALIGN_RIGHT
  615.               textalignx 128
  616.               textaligny 20
  617.         textscale .3        
  618.               forecolor 1 1 1 1
  619.               visible 0 
  620.         mouseenter { show keyBindStatus }
  621.         mouseexit { hide keyBindStatus }
  622.             }
  623.  
  624.     itemDef {
  625.               name shoot
  626.         group grpControls
  627.               type ITEM_TYPE_BIND
  628.         text "Grenade Launcher:"
  629.         cvar "weapon 4"
  630.         rect 99 190 256 20
  631.               textalign ITEM_ALIGN_RIGHT
  632.               textalignx 128
  633.               textaligny 20
  634.         textscale .3        
  635.               forecolor 1 1 1 1
  636.               visible 0 
  637.         mouseenter { show keyBindStatus }
  638.         mouseexit { hide keyBindStatus }
  639.             }
  640.  
  641.     itemDef {
  642.               name shoot
  643.         group grpControls
  644.               type ITEM_TYPE_BIND
  645.         text "Rocket Launcher:"
  646.         cvar "weapon 5"
  647.         rect 99 210 256 20
  648.               textalign ITEM_ALIGN_RIGHT
  649.               textalignx 128
  650.               textaligny 20
  651.         textscale .3        
  652.               forecolor 1 1 1 1
  653.               visible 0 
  654.         mouseenter { show keyBindStatus }
  655.         mouseexit { hide keyBindStatus }
  656.             }
  657.     
  658.     itemDef {
  659.               name shoot
  660.         group grpControls
  661.               type ITEM_TYPE_BIND
  662.         text "Lightning Gun:"
  663.         cvar "weapon 6"
  664.         rect 99 230 256 20
  665.               textalign ITEM_ALIGN_RIGHT
  666.               textalignx 128
  667.               textaligny 20
  668.         textscale .3        
  669.               forecolor 1 1 1 1
  670.               visible 0 
  671.         mouseenter { show keyBindStatus }
  672.         mouseexit { hide keyBindStatus }
  673.             }
  674.  
  675.     itemDef {
  676.               name shoot
  677.         group grpControls
  678.               type ITEM_TYPE_BIND
  679.         text "Railgun:"
  680.         cvar "Weapon 7"
  681.         rect 99 250 256 20
  682.               textalign ITEM_ALIGN_RIGHT
  683.               textalignx 128
  684.               textaligny 20
  685.         textscale .3        
  686.               forecolor 1 1 1 1
  687.               visible 0 
  688.         mouseenter { show keyBindStatus }
  689.         mouseexit { hide keyBindStatus }
  690.             }
  691.     itemDef {
  692.               name shoot
  693.         group grpControls
  694.               type ITEM_TYPE_BIND
  695.         text "Plasma Gun:"
  696.         cvar "weapon 8"
  697.         rect 99 270 256 20
  698.               textalign ITEM_ALIGN_RIGHT
  699.               textalignx 128
  700.               textaligny 20
  701.         textscale .3        
  702.               forecolor 1 1 1 1
  703.               visible 0 
  704.         mouseenter { show keyBindStatus }
  705.         mouseexit { hide keyBindStatus }
  706.             }
  707.     itemDef {
  708.               name shoot
  709.         group grpControls
  710.               type ITEM_TYPE_BIND
  711.         text "BFG:"
  712.         cvar "weapon 9"
  713.         rect 99 290 256 20
  714.               textalign ITEM_ALIGN_RIGHT
  715.               textalignx 128
  716.               textaligny 20
  717.         textscale .3                
  718.               forecolor 1 1 1 1
  719.               visible 0
  720.         mouseenter { show keyBindStatus }
  721.         mouseexit { hide keyBindStatus } 
  722.             }
  723.     itemDef {
  724.               name shoot
  725.         group grpControls
  726.               type ITEM_TYPE_BIND
  727.         text "Nail Gun:"
  728.         cvar "weapon 11"
  729.         rect 99 310 256 20
  730.               textalign ITEM_ALIGN_RIGHT
  731.               textalignx 128
  732.               textaligny 20
  733.         textscale .3        
  734.               forecolor 1 1 1 1
  735.               visible 0 
  736.         mouseenter { show keyBindStatus }
  737.         mouseexit { hide keyBindStatus }
  738.             }
  739.     itemDef {
  740.               name shoot
  741.         group grpControls
  742.               type ITEM_TYPE_BIND
  743.         text "Proximity Mine:"
  744.         cvar "weapon 12"
  745.         rect 99 330 256 20
  746.               textalign ITEM_ALIGN_RIGHT
  747.               textalignx 128
  748.               textaligny 20
  749.         textscale .3        
  750.               forecolor 1 1 1 1
  751.               visible 0 
  752.         mouseenter { show keyBindStatus }
  753.         mouseexit { hide keyBindStatus }
  754.             }
  755.     itemDef {
  756.               name shoot
  757.         group grpControls
  758.               type ITEM_TYPE_BIND
  759.         text "Chain Gun:"
  760.         cvar "weapon 13"
  761.         rect 99 350 256 20
  762.               textalign ITEM_ALIGN_RIGHT
  763.               textalignx 128
  764.               textaligny 20
  765.         textscale .3        
  766.               forecolor 1 1 1 1
  767.               visible 0 
  768.         mouseenter { show keyBindStatus }
  769.         mouseexit { hide keyBindStatus }
  770.             }
  771.  
  772. itemDef {
  773.     name ctr_miscellaneous
  774.     text "Misc"
  775.     type 1
  776.     textscale .3
  777.     group grpControlbutton
  778.     style WINDOW_STYLE_FILLED
  779.     background "ui/assets/button_back.tga"
  780.     rect 236 395 45 26
  781.     textalign 1
  782.     textalignx 22
  783.     textaligny 20
  784.     forecolor 1 1 1 1
  785.     backcolor .37 .1 .1 1 
  786.     visible 1
  787.     action { play "sound/misc/kcaction.wav" ; 
  788.     hide grpControls ; show misc }
  789.     mouseEnter { show message_misc ; setitemcolor ctr_miscellaneous backcolor .1 .37 .1 1 } 
  790.     mouseExit { hide message_misc ; setitemcolor ctr_miscellaneous backcolor .37 .1 .1 1 } 
  791.     }
  792.  
  793. itemDef {
  794.           name ctr_miscellaneous
  795.     group grpControlbutton
  796.     style WINDOW_STYLE_SHADER
  797.     background "ui/assets/framebutton.tga"
  798.      rect 236 395 45 26
  799.           visible 1 
  800.     decoration        
  801.         }
  802.  
  803. itemDef {
  804.           name ctr_miscellaneous
  805.     group grpControlbutton
  806.     style WINDOW_STYLE_SHADER
  807.     background "ui/assets/leftbutton.tga"
  808.           rect 224 395 13 26
  809.           visible 1 
  810.     decoration        
  811.         }
  812.  
  813. itemDef {
  814.           name ctr_miscellaneous
  815.     group grpControlbutton
  816.     style WINDOW_STYLE_SHADER
  817.     background "ui/assets/rightbutton.tga"
  818.           rect 280 395 13 26
  819.           visible 1 
  820.     decoration        
  821.         }
  822.  
  823.     itemDef {
  824.               name misc
  825.         group grpControls
  826.               type ITEM_TYPE_BIND
  827.         text "Show Scores:"
  828.         cvar "+scores"
  829.         rect 99 50 256 20
  830.               textalign ITEM_ALIGN_RIGHT
  831.               textalignx 128 
  832.               textaligny 20
  833.         textscale .333                    
  834.               forecolor 1 1 1 1
  835.               visible 0 
  836.         mouseenter { show keyBindStatus }
  837.         mouseexit { hide keyBindStatus }
  838.             }
  839.     itemDef {
  840.               name misc
  841.         group grpControls
  842.               type ITEM_TYPE_BIND
  843.         text "Scroll Scores Up:"
  844.         cvar "scoresUp"
  845.         rect 99 80 256 20
  846.               textalign ITEM_ALIGN_RIGHT
  847.               textalignx 128 
  848.               textaligny 20
  849.         textscale .333                    
  850.               forecolor 1 1 1 1
  851.               visible 0 
  852.         mouseenter { show keyBindStatus }
  853.         mouseexit { hide keyBindStatus }
  854.             }
  855.     itemDef {
  856.               name misc
  857.         group grpControls
  858.               type ITEM_TYPE_BIND
  859.         text "Scroll Scores Down:"
  860.         cvar "scoresDown"
  861.         rect 99 110 256 20
  862.               textalign ITEM_ALIGN_RIGHT
  863.               textalignx 128 
  864.               textaligny 20
  865.         textscale .333                    
  866.               forecolor 1 1 1 1
  867.               visible 0 
  868.         mouseenter { show keyBindStatus }
  869.         mouseexit { hide keyBindStatus }
  870.             }
  871.  
  872.     itemDef {
  873.               name misc
  874.         group grpControls
  875.               type ITEM_TYPE_BIND
  876.         text "Use Item:"
  877.         cvar "+button2"
  878.         rect 99 140 256 20
  879.               textalign ITEM_ALIGN_RIGHT
  880.               textalignx 128
  881.               textaligny 20
  882.         textscale .333            
  883.               forecolor 1 1 1 1
  884.               visible 0 
  885.         mouseenter { show keyBindStatus }
  886.         mouseexit { hide keyBindStatus }
  887.             }
  888.  
  889.     
  890.     itemDef {
  891.               name misc
  892.         group grpControls
  893.               type ITEM_TYPE_SLIDER
  894.         text "Sensitivity:"
  895.         cvarfloat "sensitivity" 5 1 30
  896.         rect 99 170 256 20
  897.               textalign ITEM_ALIGN_RIGHT
  898.               textalignx 128
  899.               textaligny 20
  900.         textscale .333            
  901.               forecolor 1 1 1 1
  902.               visible 0 
  903.         mouseenter { show slider_message }
  904.         mouseexit { hide slider_message }
  905.             }
  906.  
  907.     itemDef {
  908.               name misc
  909.         group grpControls
  910.               type ITEM_TYPE_YESNO
  911.         text "Invert Mouse:"
  912.         cvar "ui_mousePitch"
  913.         rect 99 200 256 20
  914.               textalign ITEM_ALIGN_RIGHT
  915.               textalignx 128
  916.               textaligny 20
  917.         textscale .333            
  918.               forecolor 1 1 1 1
  919.               visible 0 
  920.             action { uiScript update ui_mousePitch }
  921.         mouseenter { show yesno_message }
  922.         mouseexit { hide yesno_message }
  923.             }
  924.  
  925.     itemDef {
  926.               name misc
  927.         group grpControls
  928.               type ITEM_TYPE_YESNO
  929.         text "Smooth Mouse:"
  930.         cvar "m_filter"
  931.         rect 99 230 256 20
  932.               textalign ITEM_ALIGN_RIGHT
  933.               textalignx 128
  934.               textaligny 20
  935.         textscale .333            
  936.               forecolor 1 1 1 1
  937.               visible 0 
  938.         mouseenter { show yesno_message }
  939.         mouseexit { hide yesno_message }
  940.             }
  941.  
  942.         
  943.  
  944. itemDef {
  945.     name ctr_orders
  946.     text "Orders"
  947.     type 1
  948.     textscale .3
  949.     group grpControlbutton
  950.     style WINDOW_STYLE_FILLED
  951.     background "ui/assets/button_back.tga"
  952.     rect 309 395 47 26
  953.     textalign 1
  954.     textalignx 23
  955.     textaligny 20
  956.     forecolor 1 1 1 1
  957.     backcolor .37 .1 .1 1 
  958.     visible 1
  959.     action { play "sound/misc/kcaction.wav" ; 
  960.     hide grpControls ; show orders}
  961.     mouseEnter { show message_misc ; setitemcolor ctr_orders backcolor .1 .37 .1 1 } 
  962.     mouseExit { hide message_misc ; setitemcolor ctr_orders backcolor .37 .1 .1 1 } 
  963.     }
  964.  
  965. itemDef {
  966.           name ctr_orders
  967.     group grpControlbutton
  968.     style WINDOW_STYLE_SHADER
  969.     background "ui/assets/framebutton.tga"
  970.      rect 309 395 47 26
  971.           visible 1 
  972.     decoration        
  973.         }
  974.  
  975. itemDef {
  976.           name ctr_orders
  977.     group grpControlbutton
  978.     style WINDOW_STYLE_SHADER
  979.     background "ui/assets/leftbutton.tga"
  980.           rect 297 395 13 26
  981.           visible 1 
  982.     decoration        
  983.         }
  984.  
  985. itemDef {
  986.           name ctr_orders
  987.     group grpControlbutton
  988.     style WINDOW_STYLE_SHADER
  989.     background "ui/assets/rightbutton.tga"
  990.           rect 355 395 13 26
  991.           visible 1 
  992.     decoration        
  993.         }
  994.  
  995.     itemDef {
  996.               name orders
  997.         group grpControls
  998.             type ITEM_TYPE_BIND
  999.         text "Next Team Member:"
  1000.         cvar "nextTeamMember"
  1001.         rect 99 50 256 20
  1002.               textalign ITEM_ALIGN_RIGHT
  1003.               textalignx 128
  1004.               textaligny 20
  1005.         textscale .333           
  1006.               forecolor 1 1 1 1
  1007.               visible 0
  1008.         mouseenter { show keyBindStatus }
  1009.         mouseexit { hide keyBindStatus } 
  1010.             }
  1011.     itemDef {
  1012.               name orders
  1013.         group grpControls
  1014.               type ITEM_TYPE_BIND
  1015.         text "Next Team Order:"
  1016.         cvar "nextOrder"
  1017.         rect 99 75 256 20
  1018.               textalign ITEM_ALIGN_RIGHT
  1019.               textalignx 128
  1020.               textaligny 20
  1021.         textscale .333            
  1022.               forecolor 1 1 1 1
  1023.               visible 0 
  1024.         mouseenter { show keyBindStatus }
  1025.         mouseexit { hide keyBindStatus }
  1026.             }
  1027.     itemDef {
  1028.               name orders
  1029.         group grpControls
  1030.               type ITEM_TYPE_BIND
  1031.         text "Confirm Order:"
  1032.         cvar "confirmOrder"
  1033.         rect 99 100 256 20
  1034.               textalign ITEM_ALIGN_RIGHT
  1035.               textalignx 128
  1036.               textaligny 20
  1037.         textscale .333            
  1038.               forecolor 1 1 1 1
  1039.               visible 0 
  1040.         mouseenter { show keyBindStatus }
  1041.         mouseexit { hide keyBindStatus }
  1042.             }
  1043.         
  1044.     itemDef {
  1045.               name orders
  1046.         group grpControls
  1047.               type ITEM_TYPE_BIND
  1048.         text "Deny Order:"
  1049.         cvar "denyOrder"
  1050.         rect 99 125 256 20
  1051.               textalign ITEM_ALIGN_RIGHT
  1052.               textalignx 128
  1053.               textaligny 20
  1054.         textscale .333            
  1055.               forecolor 1 1 1 1
  1056.               visible 0 
  1057.         mouseenter { show keyBindStatus }
  1058.         mouseexit { hide keyBindStatus }
  1059.             }
  1060.  
  1061.  
  1062.     itemDef {
  1063.               name orders
  1064.         group grpControls
  1065.               type ITEM_TYPE_BIND
  1066.         text "Offense:"
  1067.         cvar "taskOffense"
  1068.         rect 99 150 256 20
  1069.               textalign ITEM_ALIGN_RIGHT
  1070.               textalignx 128
  1071.               textaligny 20
  1072.         textscale .333            
  1073.               forecolor 1 1 1 1
  1074.               visible 0 
  1075.         mouseenter { show keyBindStatus }
  1076.         mouseexit { hide keyBindStatus }
  1077.             }
  1078.  
  1079.     itemDef {
  1080.               name orders
  1081.         group grpControls
  1082.               type ITEM_TYPE_BIND
  1083.         text "Defense:"
  1084.         cvar "taskDefense"
  1085.         rect 99 175 256 20
  1086.               textalign ITEM_ALIGN_RIGHT
  1087.               textalignx 128
  1088.               textaligny 20
  1089.         textscale .333            
  1090.               forecolor 1 1 1 1
  1091.               visible 0 
  1092.             }
  1093.  
  1094.     itemDef {
  1095.               name orders
  1096.         group grpControls
  1097.               type ITEM_TYPE_BIND
  1098.         text "Patrol:"
  1099.         cvar "taskPatrol"
  1100.         rect 99 200 256 20
  1101.               textalign ITEM_ALIGN_RIGHT
  1102.               textalignx 128
  1103.               textaligny 20
  1104.         textscale .333            
  1105.               forecolor 1 1 1 1
  1106.               visible 0 
  1107.         mouseenter { show keyBindStatus }
  1108.         mouseexit { hide keyBindStatus }
  1109.             }
  1110.     itemDef {
  1111.               name orders
  1112.         group grpControls
  1113.               type ITEM_TYPE_BIND
  1114.         text "Camp:"
  1115.         cvar "taskCamp"
  1116.         rect 99 225 256 20
  1117.               textalign ITEM_ALIGN_RIGHT
  1118.               textalignx 128
  1119.               textaligny 20
  1120.         textscale .333            
  1121.               forecolor 1 1 1 1
  1122.               visible 0 
  1123.         mouseenter { show keyBindStatus }
  1124.         mouseexit { hide keyBindStatus }
  1125.             }
  1126.     itemDef {
  1127.               name orders
  1128.         group grpControls
  1129.               type ITEM_TYPE_BIND
  1130.         text "Follow:"
  1131.         cvar "taskFollow"
  1132.         rect 99 250 256 20
  1133.               textalign ITEM_ALIGN_RIGHT
  1134.               textalignx 128
  1135.               textaligny 20
  1136.         textscale .333            
  1137.               forecolor 1 1 1 1
  1138.               visible 0 
  1139.         mouseenter { show keyBindStatus }
  1140.         mouseexit { hide keyBindStatus }
  1141.             }
  1142.     itemDef {
  1143.               name orders
  1144.         group grpControls
  1145.               type ITEM_TYPE_BIND
  1146.         text "Retrieve:"
  1147.         cvar "taskRetrieve"
  1148.         rect 99 275 256 20
  1149.               textalign ITEM_ALIGN_RIGHT
  1150.               textalignx 128
  1151.               textaligny 20
  1152.         textscale .333            
  1153.               forecolor 1 1 1 1
  1154.               visible 0 
  1155.         mouseenter { show keyBindStatus }
  1156.         mouseexit { hide keyBindStatus }
  1157.             }
  1158.         itemDef {
  1159.               name orders
  1160.         group grpControls
  1161.               type ITEM_TYPE_BIND
  1162.         text "Escort:"
  1163.         cvar "taskEscort"
  1164.         rect 99 300 256 20
  1165.               textalign ITEM_ALIGN_RIGHT
  1166.               textalignx 128
  1167.               textaligny 20
  1168.         textscale .333            
  1169.               forecolor 1 1 1 1
  1170.               visible 0 
  1171.         mouseenter { show keyBindStatus }
  1172.         mouseexit { hide keyBindStatus }
  1173.             }
  1174.  
  1175.         itemDef {
  1176.               name orders
  1177.         group grpControls
  1178.               type ITEM_TYPE_BIND
  1179.         text "I Have the Flag!:"
  1180.         cvar "taskOwnFlag"
  1181.         rect 99 325 256 20
  1182.               textalign ITEM_ALIGN_RIGHT
  1183.               textalignx 128
  1184.               textaligny 20
  1185.         textscale .333            
  1186.               forecolor 1 1 1 1
  1187.               visible 0 
  1188.         mouseenter { show keyBindStatus }
  1189.         mouseexit { hide keyBindStatus }
  1190.             }
  1191.     itemDef {
  1192.               name orders
  1193.         group grpControls
  1194.               type ITEM_TYPE_BIND
  1195.         text "Target Suicide"
  1196.         cvar "taskSuicide"
  1197.         rect 99 350 256 20
  1198.               textalign ITEM_ALIGN_RIGHT
  1199.               textalignx 128
  1200.               textaligny 20
  1201.         textscale .333         
  1202.               forecolor 1 1 1 1
  1203.               visible 0 
  1204.         mouseenter { show keyBindStatus }
  1205.         mouseexit { hide keyBindStatus }
  1206.             }
  1207.  
  1208.  
  1209. itemDef {
  1210.     name ctr_chat
  1211.     text "Chat"
  1212.     type 1
  1213.     textscale .3
  1214.     group grpControlbutton
  1215.     style WINDOW_STYLE_FILLED
  1216.     background "ui/assets/button_back.tga"
  1217.     rect 382 395 45 26
  1218.     textalign 1
  1219.     textalignx 23
  1220.     textaligny 20
  1221.     forecolor 1 1 1 1
  1222.     backcolor .37 .1 .1 1 
  1223.     visible 1
  1224.     action { play "sound/misc/kcaction.wav" ; 
  1225.     hide grpControls ; show chat}
  1226.     mouseEnter { show message_misc ; setitemcolor ctr_chat backcolor .1 .37 .1 1 } 
  1227.     mouseExit { hide message_misc ; setitemcolor ctr_chat backcolor .37 .1 .1 1 } 
  1228.     }
  1229.  
  1230. itemDef {
  1231.           name ctr_chat
  1232.     group grpControlbutton
  1233.     style WINDOW_STYLE_SHADER
  1234.     background "ui/assets/framebutton.tga"
  1235.      rect 382 395 45 26
  1236.           visible 1 
  1237.     decoration        
  1238.         }
  1239.  
  1240. itemDef {
  1241.           name ctr_chat
  1242.     group grpControlbutton
  1243.     style WINDOW_STYLE_SHADER
  1244.     background "ui/assets/leftbutton.tga"
  1245.           rect 370 395 13 26
  1246.           visible 1 
  1247.     decoration        
  1248.         }
  1249. itemDef {
  1250.           name ctr_chat
  1251.     group grpControlbutton
  1252.     style WINDOW_STYLE_SHADER
  1253.     background "ui/assets/rightbutton.tga"
  1254.           rect 426 395 13 26
  1255.           visible 1 
  1256.     decoration        
  1257.         }
  1258.  
  1259. itemDef {
  1260.               name chat
  1261.         group grpControls
  1262.               type ITEM_TYPE_BIND
  1263.         text "Gesture:"
  1264.         cvar "+button3"
  1265.         rect 99 50 256 20
  1266.               textalign ITEM_ALIGN_RIGHT
  1267.               textalignx 128
  1268.               textaligny 20
  1269.         textscale .333            
  1270.               forecolor 1 1 1 1
  1271.               visible 0 
  1272.         mouseenter { show keyBindStatus }
  1273.         mouseexit { hide keyBindStatus }
  1274.             }
  1275.     
  1276.     itemDef {
  1277.               name chat
  1278.         group grpControls
  1279.               type ITEM_TYPE_BIND
  1280.         text "Chat:"
  1281.         cvar "messagemode"
  1282.         rect 99 75 256 20
  1283.               textalign ITEM_ALIGN_RIGHT
  1284.               textalignx 128
  1285.               textaligny 20
  1286.         textscale .333            
  1287.               forecolor 1 1 1 1
  1288.               visible 0 
  1289.         mouseenter { show keyBindStatus }
  1290.         mouseexit { hide keyBindStatus }
  1291.             }
  1292.  
  1293.     itemDef {
  1294.               name chat
  1295.         group grpControls
  1296.               type ITEM_TYPE_BIND
  1297.         text "Team Chat:"
  1298.         cvar "messagemode2"
  1299.         rect 99 100 256 20
  1300.               textalign ITEM_ALIGN_RIGHT
  1301.               textalignx 128
  1302.               textaligny 20
  1303.         textscale .333            
  1304.               forecolor 1 1 1 1
  1305.               visible 0 
  1306.         mouseenter { show keyBindStatus }
  1307.         mouseexit { hide keyBindStatus }
  1308.             }
  1309.  
  1310.     itemDef {
  1311.               name chat
  1312.         group grpControls
  1313.               type ITEM_TYPE_BIND
  1314.         text "Target Chat:"
  1315.         cvar "messagemode3"
  1316.         rect 99 125 256 20
  1317.               textalign ITEM_ALIGN_RIGHT
  1318.               textalignx 128
  1319.               textaligny 20
  1320.         textscale .333            
  1321.               forecolor 1 1 1 1
  1322.               visible 0 
  1323.             }
  1324.  
  1325.  
  1326.     itemDef {
  1327.               name chat
  1328.         group grpControls
  1329.               type ITEM_TYPE_BIND
  1330.         text "Attack Chat:"
  1331.         cvar "messagemode4"
  1332.         rect 99 150 256 20
  1333.               textalign ITEM_ALIGN_RIGHT
  1334.               textalignx 128
  1335.               textaligny 20
  1336.         textscale .333            
  1337.               forecolor 1 1 1 1
  1338.               visible 0 
  1339.         mouseenter { show keyBindStatus }
  1340.         mouseexit { hide keyBindStatus }
  1341.             }
  1342.  
  1343.     itemDef {
  1344.               name chat
  1345.         group grpControls
  1346.               type ITEM_TYPE_BIND
  1347.         text "Voice Taunt:"
  1348.         cvar "tauntTaunt"
  1349.         rect 99 175 256 20
  1350.               textalign ITEM_ALIGN_RIGHT
  1351.               textalignx 128
  1352.               textaligny 20
  1353.         textscale .333            
  1354.               forecolor 1 1 1 1
  1355.               visible 0 
  1356.         mouseenter { show keyBindStatus }
  1357.         mouseexit { hide keyBindStatus }
  1358.             }
  1359. /*
  1360.     itemDef {
  1361.               name chat
  1362.         group grpControls
  1363.               type ITEM_TYPE_BIND
  1364.         text "Kill Insult:"
  1365.         cvar "tauntKillInsult"
  1366.         rect 99 175 256 20
  1367.               textalign ITEM_ALIGN_RIGHT
  1368.               textalignx 128
  1369.               textaligny 20
  1370.         textscale .333            
  1371.               forecolor 1 1 1 1
  1372.               visible 0 
  1373.         mouseenter { show keyBindStatus }
  1374.         mouseexit { hide keyBindStatus }
  1375.             }
  1376.     itemDef {
  1377.               name chat
  1378.         group grpControls
  1379.               type ITEM_TYPE_BIND
  1380.         text "Praise:"
  1381.         cvar "tauntPraise"
  1382.         rect 99 200 256 20
  1383.               textalign ITEM_ALIGN_RIGHT
  1384.               textalignx 128
  1385.               textaligny 20
  1386.         textscale .333            
  1387.               forecolor 1 1 1 1
  1388.               visible 0 
  1389.         mouseenter { show keyBindStatus }
  1390.         mouseexit { hide keyBindStatus }
  1391.             }
  1392.     itemDef {
  1393.               name chat
  1394.         group grpControls
  1395.               type ITEM_TYPE_BIND
  1396.         text "General Taunt:"
  1397.         cvar "tauntTaunt"
  1398.         rect 99 225 256 20
  1399.               textalign ITEM_ALIGN_RIGHT
  1400.               textalignx 128
  1401.               textaligny 20
  1402.         textscale .333            
  1403.               forecolor 1 1 1 1
  1404.               visible 0 
  1405.         mouseenter { show keyBindStatus }
  1406.         mouseexit { hide keyBindStatus }
  1407.             }
  1408.     itemDef {
  1409.               name chat
  1410.         group grpControls
  1411.               type ITEM_TYPE_BIND
  1412.         text "Death Insult:"
  1413.         cvar "tauntDeathInsult"
  1414.         rect 99 250 256 20
  1415.               textalign ITEM_ALIGN_RIGHT
  1416.               textalignx 128
  1417.               textaligny 20
  1418.         textscale .333            
  1419.               forecolor 1 1 1 1
  1420.               visible 0 
  1421.         mouseenter { show keyBindStatus }
  1422.         mouseexit { hide keyBindStatus }
  1423.             }
  1424. */
  1425.  
  1426.  
  1427.  
  1428. //    TOOLS     MESSAGE    //
  1429.  
  1430. itemDef {
  1431.           name yesno_message
  1432.           rect 0 15 640 30 
  1433.     text "Select the Item to Toggle to Yes or No"      
  1434.     forecolor 1 .75 0 1
  1435.     textscale .25
  1436.     textalignx 221
  1437.     textalign 1
  1438.     textaligny 20
  1439.     visible 0
  1440.           decoration 
  1441.     }
  1442. itemDef {
  1443.           name slider_message
  1444.           rect 0 15 640 30 
  1445.     text "Drag the Slider to Increase and Decrease"      
  1446.     forecolor 1 .75 0 1
  1447.     textscale .25
  1448.     textalignx 221
  1449.     textalign 1
  1450.     textaligny 20
  1451.     visible 0
  1452.           decoration 
  1453.     }
  1454.  
  1455. itemDef {
  1456.           name fadebox
  1457.           style WINDOW_STYLE_FILLED
  1458.      background "ui/assets/fadebox.tga"
  1459.     forecolor 0 0 0 1
  1460.     backcolor 0 0 0 1
  1461.     rect 0 0 640 480
  1462.           visible 1 
  1463.     decoration
  1464.         }
  1465.  
  1466.  
  1467.  
  1468.     
  1469.  
  1470.  
  1471.  
  1472.  
  1473.  
  1474.     
  1475.  
  1476.  
  1477.  
  1478. }
  1479.  
  1480. }
  1481.  
  1482. }
  1483.